-- cmd_buy_shop_goods
-- Create by panyl
-- 购买商店物品

function Operation.cmd_buy_shop_goods(shopType, goodsIndex)
    -- 客户端先扣除消耗
    ShopM.buyGoods(shopType, goodsIndex);

    -- 直接发给服务器
    SyncM.addMessage("CMD_BUY_SHOP_GOODS", { ["shop_type"] = shopType, ["goods_index"] = goodsIndex, ["shop_id"] = ShopM.getShopData(shopType).refresh_time, });
    SyncM.startSync();
end
